package ejb.dao;

import java.util.List;

import ejb.entity.Position;
import ejb.entity.User;

public interface PositionDAO {

	public abstract Position create(Position position);

	public abstract Position findById(int id);

	public abstract List<Position> findByUser(User user);

	public abstract Position findByName(String name);

	public abstract Position findByNameAndUser(String name, User user);
	
	public abstract List<Position> findByUserAndForecast(User user, boolean forecast);
	
	public abstract boolean delete(Position Position);

}